Задача с кодом. ASCII-код символа в другом регистре
Создайте функцию, которая будет принимать в качестве аргумента единичный символ и возвращать код такого же символа, но в другом регистре.
Примеры: код символа "A" - 65 код символа "a" - 97 counterpartCharCode("A") ➞ 97 counterpartCharCode("a") ➞ 65
Примечания: - Аргумент всегда будет единичным символом. - Не все символы имеют регистр (например, цифры). Если перевести символ в другой регистр невозможно, функция должна вернуть код самого символа.
Задача с кодом. ASCII-код символа в другом регистре
Создайте функцию, которая будет принимать в качестве аргумента единичный символ и возвращать код такого же символа, но в другом регистре.
Примеры: код символа "A" - 65 код символа "a" - 97 counterpartCharCode("A") ➞ 97 counterpartCharCode("a") ➞ 65
Примечания: - Аргумент всегда будет единичным символом. - Не все символы имеют регистр (например, цифры). Если перевести символ в другой регистр невозможно, функция должна вернуть код самого символа.
The Singapore stock market has alternated between positive and negative finishes through the last five trading days since the end of the two-day winning streak in which it had added more than a dozen points or 0.4 percent. The Straits Times Index now sits just above the 3,060-point plateau and it's likely to see a narrow trading range on Monday.
NEWS: Telegram supports Facetime video calls NOW!
Secure video calling is in high demand. As an alternative to Zoom, many people are using end-to-end encrypted apps such as WhatsApp, FaceTime or Signal to speak to friends and family face-to-face since coronavirus lockdowns started to take place across the world. There’s another option—secure communications app Telegram just added video calling to its feature set, available on both iOS and Android. The new feature is also super secure—like Signal and WhatsApp and unlike Zoom (yet), video calls will be end-to-end encrypted.